package com.ebpm.designer
{
	public class WP
	{
		public function WP(){}
		
		public static var isCtrlDown:Boolean = false;												//是否按住【Ctrl键】
		
		/** 线事件 **/
		public static var isDrawingLine:Boolean = false;											//是否绘制【线】
		public static var isMovingMiddleLineDir:Boolean = false;							//是否移动【线-中间变化框】
		public static var isMovingFromLineDir:Boolean = false;								//是否移动【线-源变化框】
		public static var isMovingEndLineDir:Boolean = false;									//是否移动【线-目标变化框】
		public static var isMovingLineTxtEvent:Boolean = false;								//移动【线-文本框】事件
		
		/** NodeContainer事件 **/
		public static var isClickNodeContainer:Boolean = false;								//是否点击了【NodeContainer】
		public static var isMovingNodeContainer:Boolean = false;							//是否允许移动【NodeContainer】：该属性针对【键盘事件】
		public static var isMovingSelectRectEvent:Boolean = false;						//移动【NodeContainer选择框】
		
		/** SelectRect事件 **/
		public static var isDrawSelectRectEvent:Boolean = false;							//是否绘制【选择框】事件
		public static var isAllowSelectNodeContainers:Boolean = true;					//是否允许绘制【选择框】：默认wp.mouseDown是允许绘制【选择框】,但是因为wp的mouseDown监听很多事件。如：连线、移动等...所以，必须是排除其他事件以后，才能设置为true
		public static var isMovingSelectRectByKeyboard:Boolean = false;				//是否允许键盘移动【选择框】
		
		/**是否正在编辑文本**/
		public static var isEditing:Boolean = false;
		
		public static var mouseDownX:Number;
		public static var mouseDownY:Number;
		public static var mouseUpX:Number;
		public static var mouseUpY:Number;
		public static var mouseMoveX:Number;
		public static var mouseMoveY:Number;
		public static var mouseChangeX:Number;
		public static var mouseChangeY:Number;
		
		public static var mouseDownStageX:Number;
		public static var mouseDownStageY:Number;
		public static var mouseMoveStageX:Number;
		public static var mouseMoveStageY:Number;
		
	}
}